package com.commerceerp.system.mapper;

import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface FxClassLevelMapper {

    Integer addOneLevelMenu(@Param("oneLevelName")String oneLevelName,@Param("oneLevelSort")String oneLevelSort);

    Integer updateOneLevelMenu(@Param("oneLevelName")String oneLevelName,@Param("oneLevelSort")String oneLevelSort,@Param("oneLevelId")String oneLevelId);

    List<Map> getAllOneLevelMenu();

    Integer delteOneLevelMenu(String oneLevelId);

    Integer addTwoLevelMenu(@Param("twoLevelName")String twoLevelName,@Param("twoLevelSort")String twoLevelSort,@Param("oneLevelId")String oneLevelId,@Param("commision")String commision);

    Integer updateTwoLevelMenu(@Param("twoLevelName")String twoLevelName,@Param("twoLevelSort")String twoLevelSort,@Param("oneLevelId")String oneLevelId,@Param("commision")String commision,@Param("twoLevelId")String twoLevelId);

    List<Map> getAllTwoLevelMenu(String oneLevelId);

    Integer delteTwoLevelMenu(String twoLevelId);

}
